package com.sumainfor.pc.market.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.market.service.LoansServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * 功能描述:
 *
 * @Auther: zhlu
 * @Date: 2019/2/15 16:30
 * @Description:
 */
@RestController
@RequestMapping("/loans")
public class LoansController {
    @Autowired
    LoansServiceImpl loansServiceImpl;

    @ResponseBody
    @RequestMapping(value = "/getLoansList",method = RequestMethod.GET)
    public JsonResult getLoansList(){
        JsonResult result=new JsonResult();
        Map<String,Object> params=new HashMap<String,Object>();
        params.put("delfg",0);
        result.put(loansServiceImpl.getLoansList(params));
        return result;
    }
}
